package com.guohe3.just.controller;

import com.guohe3.just.common.resp.ApiResult;
import com.guohe3.just.common.utils.RestUtil;
import com.guohe3.just.service.TiyuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "体育接口", description = "体育成绩接口")
@RestController
@RequestMapping("api/tiyu")
public class TiyuController {
    @Autowired
    TiyuService tiyuService;
    @PostMapping("/getTiyuScore")
    @ApiOperation("获取体育成绩")
    public ApiResult create(@RequestParam String username,@RequestParam String VpnPassword,@RequestParam String tiyupassword) throws Exception {
        return RestUtil.success("查询成功",tiyuService.result(username, VpnPassword, tiyupassword));
    }
}
